/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.cshoo.tattoo.datacenter.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 杨翼
 * @since 1.0
 */
@Data
public class AddConfigReq {

    @NotNull(message = "code is required")
    @ApiModelProperty(value = "编号", example = "a308b")
    private String code;

    @NotBlank(message = "name is required")
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @ApiModelProperty(value = "描述")
    private String description;

}
